package com.wtcrazy.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wtcrazy.dao.ProductClassMapper;
import com.wtcrazy.entity.Product;
import com.wtcrazy.entity.ProductClass;
import com.wtcrazy.service.IProductClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductClassServiceImpl extends ServiceImpl<ProductClassMapper, ProductClass> implements IProductClassService {
    @Autowired
    ProductClassMapper productClassMapper;

    @Override
    public List<Product> getAllProduct() {
        return productClassMapper.getAllProduct();
    }
}
